/**
 * 
 */
package com.study.adapter;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

/**
 * @author Administrator
 * @date 2019年6月23日
 */
@Data
public class LogWriteFileServiceImpl implements LogWriteFileService {

	private LogBean logBean;
	/**
	 * @param logBean
	 */
	public LogWriteFileServiceImpl(LogBean logBean) {
		this.logBean = logBean;
	}

	public void writeFile(){
		System.out.println("将日志写入到文件当中。" + logBean.toString());
	}
	
	public List<LogBean> readLogFile(){
		LogBean log1 = new LogBean();
        log1.setLogId("0001");
        log1.setLogText("Tomcat启动成功..");

        LogBean log2 = new LogBean();
        log2.setLogId("0002");
        log2.setLogText("Jetty启动成功..");
        List<LogBean> listArrayList = new ArrayList<LogBean>();
        listArrayList.add(log1);
        listArrayList.add(log2);
        return listArrayList;
	}
}
